package main

import (
	"flag"
	"fmt"
)

func main() {
	cmd := parseCmd()
	if cmd.versionFlag {
		printVersionInfo()
	} else if cmd.helpFlag || cmd.class == "" {
		flag.Usage()
	} else {
		newJVM(cmd).start()
	}
}

func printVersionInfo() {
	fmt.Println("java version 1.8")
	fmt.Println("JVM MADE BY CYL")
}
